package com.devbobcorn.misaka.items;

import com.devbobcorn.misaka.Misaka;
import com.devbobcorn.misaka.sounds.ModSoundEvents;

import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.Item;
import net.minecraft.item.MusicDiscItem;
import net.minecraft.item.Rarity;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public final class ModItems {
    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Misaka.MODID);

    public static final RegistryObject<Item> COIN = ITEMS.register("coin",() -> new CoinItem((new Item.Properties()).stacksTo(16).tab(ModItemTab.MISAKA_GROUP)));

    public static final RegistryObject<Item> GEKOTA_MASK = ITEMS.register("gekota_mask",() -> new ArmorItem(ModArmorMaterials.GEKOTA, EquipmentSlotType.HEAD, (new Item.Properties()).tab(ModItemTab.MISAKA_GROUP)));
    public static final RegistryObject<Item> GOGGLES = ITEMS.register("goggles",() -> new ArmorItem(ModArmorMaterials.WARE, EquipmentSlotType.HEAD, (new Item.Properties()).tab(ModItemTab.MISAKA_GROUP)));
    
    public static final RegistryObject<Item> CANNED_CAKE = ITEMS.register("canned_cake",() -> new CannedFoodItem((new Item.Properties()).stacksTo(16).tab(ModItemTab.MISAKA_GROUP).food(ModFoods.CAKE_SLICE)));
    public static final RegistryObject<Item> CANNED_MISAKA_CAKE = ITEMS.register("canned_misaka_cake",() -> new CannedFoodItem((new Item.Properties()).stacksTo(16).tab(ModItemTab.MISAKA_GROUP).food(ModFoods.CAKE_SLICE)));

    public static final RegistryObject<Item> MUSIC_DISC_ONLY_MY_RAILGUN = ITEMS.register("music_disc_only_my_railgun",() -> new MusicDiscItem(1, ModSoundEvents.MUSIC_DISC_ONLY_MY_RAILGUN, (new Item.Properties()).stacksTo(1).tab(ModItemTab.MISAKA_GROUP).rarity(Rarity.RARE)));

}
